package com.spring.annotation;

import com.spring.beans.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class ScopConfig {
    @Bean
    @Scope("prototype")
    public User user(){
        User user = new User("za", 23);
        return user;
    }
}
